from . import views
from django.urls import path

urlpatterns = [
    path('user/',views.CenterView.as_view({'get':'list','put':'update'})),
    path('user/password/',views.UpdatePasswordView.as_view()),
    path('user/label/',views.Userlabel.as_view())
    ]

# from rest_framework.routers import SimpleRouter
# router = SimpleRouter()
# # ② 注册视图集
# router.register('user', views.CenterView, basename='user')
# # ③ 添加url配置
# urlpatterns += router.urls
